const u = navigator.userAgent
export const isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1
export const isIOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)
export const androidAttrs = isAndroid && u.match(/MMWEBSDK\/200502/i) && u.match(/XWEB\/2353/i)
export const isMobile = isIOS || isAndroid
